package org.fkjava.struts2.action;

import com.opensymphony.xwork2.Action;

public class LoginAction implements Action {

	private String name;
	private String pass;
	
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPass() {
		return pass;
	}

	public void setPass(String pass) {
		this.pass = pass;
	}

	@Override
	public String execute() throws Exception {
		if(name.equals("crazyit")&&pass.equals("leegang"))
		{
			return SUCCESS;
		}
		return ERROR;
		
	}

}
